package info.davidesposito.bamboomonitor.loops;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public final class BambooLoopModule {

	public static enum BuildStatus { BUILDING, QUEUED, WAITING }
	public static enum LoopStatus { PASSING, FAILING }
	
	public final static List<BambooLoop> CORE_COMMUNITY_LOOPS;
	public final static Map<String, BambooLoop> CORE_COMMUNITY_LOOPS_MAP;
	
	static {
		List<BambooLoop> temp = new ArrayList<BambooLoop>();
		temp.add(new BambooLoop("COMMUNITY1", "ASCOM1"));
		temp.add(new BambooLoop("COMMUNITY6", "ASCOM6"));
		temp.add(new BambooLoop("COMMUNITY7", "ASCOM7"));
		temp.add(new BambooLoop("COMMUNITY8", "ASCOM8"));
		temp.add(new BambooLoop("CORE1", "ASCORE1"));
		temp.add(new BambooLoop("CORE2", "ASCORE2"));
		CORE_COMMUNITY_LOOPS = Collections.unmodifiableList(temp);
		Map<String, BambooLoop> tempMap = new HashMap<String, BambooLoop>();
		for (BambooLoop b : CORE_COMMUNITY_LOOPS) {
			tempMap.put(b.getId(), b);
		}
		CORE_COMMUNITY_LOOPS_MAP = Collections.unmodifiableMap(tempMap);
	}
}
